extends "../cTDR_4/cTDR_4.gd"
func _info():
	pass

func _connect():
	._connect()

func _extInit():
	._extInit()
	chaName = "机械射手"
	lv = 3
	attCoe.atkRan = 3
	attCoe.atk = 25 / 8.5 * 2 / 3
	attCoe.maxHp = 900 / 112.5 / 3
	addSkillTxt("无限能量：每秒恢复自身血量上限3%点血")
	addSkillTxt("能量链接：每秒有33%概率链接另一台机械射手[必须存在]，对当其敌人发起共2次普攻")

var pw2 = 33

func _upS():
	._upS()
	healCha(self,att.maxHp * 0.03)
	if sys.rndPer(pw2) && aiCha != null:
		var flag = 0
		var chas = getAllChas(2)
		for i in chas:
			if i.id == self.id && i != self:
				flag = 1
				break
		if flag:
			cst("能量链接","000000",position)
			for i in range(2):
				hurtChara(aiCha,att.atk,Chara.HurtType.PHY,Chara.AtkType.NORMAL)
